<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>工作务任-编辑</title>

		<link rel="stylesheet" href="../lib/element-ui/index.css">
		<link rel="stylesheet" href="../lib/codemirror/codemirror.css">
		<link rel="stylesheet" href="../lib/codemirror/addom/hint/show-hint.css">
		<link rel="stylesheet" href="../lib/codemirror/theme/darcula.css">
		<link rel="stylesheet" href="./index.css">

	</head>
	
	<body>

		<div id="app">

			<div class="app-layer-left">
				<textarea name="script_content" id="script_content" style="display: none;"></textarea>
			</div>

			<div class="app-layer-right">
				<div><span>&#xe850;</span></div>
				<div>
					<el-form :model="formData.fields" :rules="formData.rules" ref="formData" label-width="100px" class="app-layer-right-form" status-icon>
						<el-form-item label="名称" prop="name">
							<el-input v-model="formData.fields.name"></el-input>
						</el-form-item>
						<el-form-item label="编码" prop="code">
							<el-input v-model="formData.fields.code" readonly></el-input>
						</el-form-item>
						<el-form-item label="Cron表达式" prop="cron">
							<el-input v-model="formData.fields.cron" autocomplete="off"></el-input>
						</el-form-item>
						<el-form-item label="说明">
							<el-input type="textarea" v-model="formData.fields.description"></el-input>
						</el-form-item>
						<el-form-item label-width="0px" size="mini" class="app-layer-right-form-btn">
							<el-button type="danger" icon="el-icon-cpu" @click="onTest" round>测试</el-button>
							<el-button type="primary" icon="el-icon-success" @click="onSave" round>保存</el-button>
							<el-button type="primary" icon="el-icon-timer" @click="onInject" round>启动</el-button>
						</el-form-item>
					</el-form>
				</div>
			</div>
		</div>
	</body>

	<script type="text/javascript" src="../lib/vue.js"></script>
	<script type="text/javascript" src="../lib/element-ui/index.js"></script>
	<script type="text/javascript" src="../lib/codemirror/codemirror.js"></script>
	<script type="text/javascript" src="../lib/codemirror/groovy.js"></script>
	<script type="text/javascript" src="../lib/codemirror/addom/hint/show-hint.js"></script>
	<script type="text/javascript" src="../lib/codemirror/addom/hint/anyword-hint.js"></script>
	<script type="text/javascript" src="../../lib/snail.common.js"></script>
	<script type="text/javascript" src="../../lib/codemirror/groovy-hint.js?buildversion=20210715"></script>
	<script type="text/javascript" src="./index.js"></script>

</html>
